<template>
  <div>
    <h2>路由缓存测试</h2>
    <br />
    <br />
    <el-input v-model="value"></el-input>
    <br />
    <br />
    <div>路由跳转并返回后，查看输入的字符是否被缓存</div>
    <el-button @click="router.push('/keepAliveTest2')">跳转到路由缓存测试2</el-button>
  </div>
</template>

<script lang="ts" setup>
import { ref } from 'vue'
import { useRouter } from 'vue-router'

const router = useRouter()
const value = ref('')
</script>

<style scoped lang="scss"></style>
